package org.csmz;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class example07 {
    public static void main(String[] args) throws IOException {
        FileInputStream in = new FileInputStream("src//file//test01.txt");
        int len;
        byte[] bytes = new byte[1024];
        while ((len = in.read(bytes)) != -1) {
            System.out.println(new String(bytes, 0, len));
        }
        in.close();
    }
}